const app = getApp();
Page({
  data: {
    navIndex: '0',
    nav:[
      '分类一','分类二','分类三'
    ],
    list:[
      {
        id: '0',
        title:'如何生成推广码？',
      }, {
        id: '0',
        title: '如何生成推广码？',
      }, {
        id: '0',
        title: '如何生成推广码？',
      }, {
        id: '0',
        title: '如何生成推广码？',
      }
    ]
  },
  onLoad: function (options) {
    let that = this;
    app.request('help/index',{},'GET',false,function(res){
      that.setData({
        pageShow: true,
        list: res.data.data,
      })
    })
  },
  navChoose(e){
    let that = this;
    let index = e.currentTarget.dataset.index;
    that.setData({
      navIndex: index,
    })
  },
  skipPage(e){
    app.skipPage(e);
  },
  onReachBottom: function () {

  },
  onShareAppMessage: function () {
    
  }
})